<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
 <%@include file="../common/tag.jsp"%>
<!DOCTYPE html>
<html lang="zh">
	
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("path", path);
%>
<base href="<%=basePath%>">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>注册信息</title>

		<link href="${ctx}/css/reg.css" rel="stylesheet" type="text/css" />
		<script src="${ctx}/js/random.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			var message="${message}"
			if(message!=""&&message!=null){
				alert(message)
			}
		</script>
	</head>

	<body>
		<!--header s-->
		<div id="header">
			<div class="head clearfix">
				<div class="city">
					<a class="fc-city" href="" title="">深圳</a>
					<a href="">[切换城市]</a>
				</div>
				<div class="head-m">
					<ul class="column-list clearfix">
						<li>
							<a class="column" href="">招聘</a><i class="column-arrow"></i></li>
						<li>
							<a class="column" href="">租房</a><i class="column-arrow"></i></li>
						<li>
							<a class="column" href="">二手房</a><i class="column-arrow"></i></li>
						<li>
							<a class="column" href="">车辆</a><i class="column-arrow"></i></li>
						<li>
							<a class="column" href="">二手</a><i class="column-arrow"></i></li>
						<li data-widget="app/ms_v2/common/base_page.js#topNav" class="top-nav fl">
							<a class="top-nav-btn clearfix js-btn" href="#" onclick="return false;">更多<em class="topnav-arrow"></em></a>
							<ul class="top-nav-list hide js-list"></ul>
						</li>
					</ul>
				</div>
				<div class="head-r clearfix">
					<div class="fl">
						<div class="ganji-dingdong">
							<a target="_blank" title="手机赶集" href="" class="column mobile-icon">手机赶集</a>
						</div>
					</div>
					<div class="fl">
						<div class="column ganji-dingdong">
							<a target="_blank" title="赶集叮咚" href="">赶集叮咚</a>
						</div>
					</div>
					<div class="fl">
						<li class="top-nav fl">
							<a class="top-nav-btn clearfix js-btn" href="">我要推广<em class="topnav-arrow"></em></a>
					</div>

					<div class="fl reg-login">
						<span class="reg-login-btn clearfix">
                    <a class="reg js-signup-btn" href="" title="免费注册"  target="_self" rel="nofollow">免费注册</a>
                    <a class="login js-signin-btn" href="" title="会员登录" target="_self" rel="nofollow">会员登录</a>
                </span>
					</div>
				</div>
			</div>
		</div>
		
		<div class="logo-wrap clearfix">
			<div class="gj-logo">
				<a target="_self" href="/"><img width="155" height="62" src="${ctx}/img/logo.png"></a>
			</div>
			<div class="logo-title"><span class="logo-tit user-reg">免费注册</span></div>
		</div>
		
		<div id="wrapper">
			<div class="clearfix reg-cont V5">
				<p class="desc">注册赶集只需10秒，发布、管理信息更轻松</p>
				<div class="login-tab">
					<ul>
						<li data-role="switch" data-action="phone" class="active">
							<a href="javascript:void(0);">手机快速注册</a>
						</li>
						<li class="li_fr">已有账号?<span><a href="${ctx}/user/login.htm">立即登录</a></span></li>

					</ul>
				</div>

				<div class="tab-con2 js-tab js-phone">
					<div class="error-box V5" id="reg_phone_error" style="display:none">
						<span class="validatorMsg validatorError" id="reg_phone_error_content"></span>
					</div>
					<form action="${ctx}/user/reg.do" ModelAttribute="userInfo"  method="post" id="phone_register_form">
						
						<div class="tab-cont" style="display:block;">

							<div class="field clearfix">
								<label class="field-tit" for="username">用户名：</label>
								<input value="" name="username" type="text" placeholder="请填写用户名" class="tab-input-text t_reg_username" /> &nbsp;
								<span class="msg-box" id="tip_username">
									<form:errors path="username" cssClass="has-error"/>
								</span>
							</div>
							<div class="field clearfix">
								<label class="field-tit" for="phone">手机号：</label>
								<input type="text" class="tab-input-text t_reg_phone" placeholder="请填写您的手机号" name="phone" value=""> &nbsp;
								<span id="tip_phone" class="msg-box">
									<form:errors path="phone" cssClass="has-error"/>
								</span>
							</div>
							<div class="field checkcode clearfix" id="checkcode">
								<label class="field-tit" for="password">验证码：</label>
								
								<input value="" name="verificationCode" type="text" maxlength="4" class="input-text" id="checkcode_phone_input">
								<img src="${ctx}/captcha" onclick="this.src='${ctx}/captcha?d='+new Date().getTime()"/>  
								<span id="tip_phone_checkcode" style="width:136px"></span>
							</div>
							<div class="field clearfix">
								<label class="field-tit" for="password">密码：</label>
								<input value="" name="passwd" type="password" class="tab-input-text t_phone_password" maxlength="16" />
								<span class="msg-box" id="tip_phone_password">
								<form:errors path="passwd" cssClass="has-error"/>
								</span>
								
							</div>
							<div class="field clearfix">
								<label class="field-tit" for="confirm-password">确认密码：</label>
								<input value="" name="verifyPassword" type="password" maxlength="16" class="tab-input-text t_phone_password2" />
								<span class="msg-box" id="tip_phone_password2">
									<form:errors path="verifyPassword" cssClass="has-error"/>
								</span>
							</div>
							<div class="gj-agreement clearfix">
								<div class="gj-agreement-cont"><input value="14" checked name="phone_affirm" type="checkbox" class="chk-vm t_cvm" />
									<label for="stay-login">我接受赶集网<a target="_blank" href="">&lt;&lt;服务条款&gt;&gt;</a></label>
									<span class="msg-box" id="tip_phone_affirm"></span>
								</div>
							</div>
							<div class="submit-box" >
								<input class="btn-org js-submit-btn t_submit" type="button"value="立即注册" onclick="validate()" >
							</div>
						</div>
					</form>
				</div>

			</div>
		</div><input value="" name="verifyPassword" type="password" maxlength="16" class="tab-input-text t_phone_password2">

		<ul id="footer" class="clearfix">
			<li>
				<a href="" >关于Ganji</a> -
				<a href="" >赶集推广</a> -
				<a href="" > 渠道合作 </a> -
				<a href="" >帮助中心</a> -
				<a class="fc-red" href="" >手机号被冒用</a> -
				<a href="" >友情链接</a> -
				<a href="">招贤纳士</a> -
				<a href="">区县导航</a> -
				<a href="">手机赶集</a> -
				<a href="">赶集网触屏版</a>
			</li>
		</ul>
</body>

</html>